package com.dstz.demo.core.manager.impl;

import com.dstz.base.manager.impl.BaseManager;
import com.dstz.demo.core.dao.AmaterialversionDao;
import com.dstz.demo.core.manager.AmaterialversionManager;
import com.dstz.demo.core.model.Amaterialversion;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("AmaterialversionManager")
public class AmaterialversionManagerImpl extends BaseManager<String, Amaterialversion> implements AmaterialversionManager {
    @Resource
    AmaterialversionDao amaterialversionDao;
    @Override
    public Integer save(Amaterialversion amaterialversion) {
        return amaterialversionDao.save(amaterialversion);
    }

    @Override
    public Integer counts(String id) {
        return amaterialversionDao.counts(id);
    }

    @Override
    public Integer deleteById(String id) {
        return amaterialversionDao.deleteById(id);
    }
}
